object Test extends A with B